﻿<%@ Page Language="C#" %>

<%
    String ten = Request["ten"];
    int gia = Int16.Parse(Request["gia"]);
    int loai = Int16.Parse(Request["loai"]);
    int nhasx = Int16.Parse(Request["nhasx"]);
    DateTime ngaynhap = DateTime.Parse(Request["ngaynhap"]);
    int sluong = Int16.Parse(Request["soluong"]);
    int kmai = Int16.Parse(Request["khuyenmai"]);
    int giamgia = Int16.Parse(Request["giamgia"]);
    int id = Int16.Parse(Request["id"]);
    String hinh = Request["hinh"];
    DTO.SanPhamDto sp = new DTO.SanPhamDto();
    sp.Hinh = hinh;
    sp.ID = id;
    sp.IDGiamGia = giamgia;
    sp.IDKhuyenMai = kmai;
    sp.IDLoai = loai;
    sp.IDNhaSanXuat = nhasx;
    sp.NgayNhap = ngaynhap;
    sp.SoLuongCon = sluong;
    sp.TenSanPham = ten;
    sp.DonGia = gia;
    Response.Write(BUS.SanPhamBus.CapnhatSanPham(sp).ToString());
    
%>
